import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 故障分类
 * */
// 创建
export const spinFaultCauseCreate = (data) => postRequest('/spin/fault-cause/create', data);

// 更新
export const spinFaultCauseUpdate = (data) => putRequest('/spin/fault-cause/update', data);

// 删除
export const spinFaultCauseDelete = (params) => deleteRequest('/spin/fault-cause/delete', params);

// 获得
export const spinFaultCauseGet = (params) => getRequest('/spin/fault-cause/get', params);

// 获得分页
export const spinFaultCausePage = (params) => getRequest('/spin/fault-cause/page', params);

// 导出 Excel
export const spinFaultCauseExportExcel = (params) => getRequest('/spin/fault-cause/export-excel', params);

// 提交
export const spinFaultCauseSubmitAudit = (params) => postRequest('/spin/fault-cause/submit-audit', params);
// 撤销提交
export const spinFaultCauseClearSubmitAudit = (params) => postRequest('/spin/fault-cause/clear-submit-audit', params);
// 审核
export const spinFaultCauseAudit = (params) => postRequest('/spin/fault-cause/audit', params);
// 撤销审核
export const spinFaultCauseClearAudit = (params) => postRequest('/spin/fault-cause/clear-audit', params);
// 保存并审核
export const spinFaultCauseCreateAudit = (params) => postRequest('/spin/fault-cause/create-audit', params);
// 更新并审核
export const spinFaultCauseUpdateAudit = (params) => putRequest('/spin/fault-cause/update-audit', params);
// 关闭
export const spinFaultCauseClose = (params) => postRequest('/spin/fault-cause/close', params);
// 撤销关闭
export const spinFaultCauseClearClose = (params) => postRequest('/spin/fault-cause/clear-close', params);
